// lms - course - base
// ====================

// Table of Contents
// * +Containers
// * +Resets - Old, Body
// * +Resets - Old, Forms
// * +Resets - Old, Images
// * +Resets - Old, Misc


// +Containers
// ====================

.content-wrapper {
  background: none;
  border: none;
}

.container {
  padding: 0;

  > div {
    display: table;
    table-layout: fixed;
    width: 100%;
    border: 1px solid $border-color-2;
    background: $container-bg;
    box-shadow: 0 1px 2px $shadow-l2;
  }
}


// +Resets - Old, Body
// ====================

body {
  min-height: 100%;
  background-color: $course-bg-color;

  //for background texture:
  //background-image: $course-bg-image;
}

body, h1, h2, h3, h4, h5, h6, p, label {
  @include text-align(left);
  font-family: $sans-serif;
}

// we want to hide the outline on the focusable <main> element
main {
    outline: none;
}

table {
  table-layout: fixed;
}

.xblock table {
  table-layout: auto
}

a {
  &:hover, &:focus {
    color: $pink;
    text-decoration: none !important;
  }
}

// +Resets - Old, Forms
// ====================
form {
  label {
    display: block;
  }
}

form.choicegroup {
  label {
    clear: both;
    @include float(left);
  }
}


textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
  background: $white;
  border: 1px solid $border-color-2;
  border-radius: 0;
  box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6), inset 0 0 3px 0 $shadow-l1;
  @include box-sizing(border-box);
  font: normal 1em $sans-serif;
  height: 35px;
  padding: ($baseline/4) 12px;
  vertical-align: top;
  -webkit-font-smoothing: antialiased;

  &:last-child {
    margin-right: 0;
  }

  &:focus {
    border-color: lighten($link-color, 20%);
    box-shadow: 0 0 6px 0 rgba($blue, 0.4), inset 0 0 4px 0 rgba(0,0,0, 0.15);
  }
}

label {
  font-weight: normal;
  font-style: normal;
}

input[type="reset"],
input[type="submit"],
input[type="button"],
button,
.button {
  @extend .gray-button;

  form & {
    @extend .gray-button;
  }
}


// +Resets - Old, Images
// ====================
img {
  max-width: 100%;
}

.tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99999;
  padding: 0 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .85);
  font-size: 11px;
  font-weight: 400;
  line-height: 26px;
  color: $white;
  pointer-events: none;
  opacity: 0;
  @include transition(opacity .1s linear 0s);

  &:after {
    content: '▾';
    display: block;
    position: absolute;
    bottom: -14px;
    left: 50%;
    margin-left: -7px;
    font-size: 20px;
    color: rgba(0, 0, 0, .85);
  }
}


// +Resets - Old, Misc
// ====================
.test-class {
  border: 1px solid #f00;
}

.site-status {
  display: block;
}

.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 350px;
  padding: 15px 20px 17px;
  border-radius: 3px;
  border: 1px solid $border-color-3;
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)) rgba(30, 30, 30, .92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .1) inset;
  font-size: 13px;
  color: $white;
  opacity: 0;
  -webkit-transition: all .2s;

  p, span {
    color: $white;
  }

  strong {
    display: block;
    margin-bottom: ($baseline/2);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 27px;
    height: 27px;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #aaa;
    text-align: center;

    .close-icon {
      font-size: 16px;
      font-weight: 700;
    }
  }

  .action-btn {
    @include dark-grey-button;
    margin-top: ($baseline/2);
    text-align: center;
  }
}
